package com.easyOrder.core.identity;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicBoolean;

public class IdentityToken implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6753612682527480278L;
	
	private String token;
	
	private AtomicBoolean valid = new AtomicBoolean(false);

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public AtomicBoolean getValid() {
		return valid;
	}

	public void setValid(AtomicBoolean valid) {
		this.valid = valid;
	}

	@Override
	public String toString() {
		return "IdentityToken{" +
				"token='" + token + '\'' +
				", valid=" + valid +
				'}';
	}
}
